package com.yeyaomai.dksns.flowis.dao;

import java.util.List;
import java.util.Map;

import com.yeyaomai.dksns.flowis.domain.FlowRole;

/**
 * 权限角色表
 * 
 * @author xiaqin
 * @date 2012-06-26
 */
public interface FlowRoleDao {

	void addFlowRole(FlowRole flowRole);
	
	Integer countFlowRole();

	void addFlowRole_User(FlowRole flowRole);//用户角色关联表添加

	void deleteRole_User(Long userId);//用户角色关联表删除

	void updateFlowRole(FlowRole flowRole);

	void deleteFlowRole(Long roleId);
	
	void deleteRole_UserByRoleId(Long roleId);

	FlowRole getFlowRoleByRoleId(Long roleId);
	
	FlowRole  getFlowRoleUserByUserId(Long userId);
	
	FlowRole getFlowRoleByRoleName(String roleName);

	List<FlowRole> listFlowRole(Map<String, Object> map);
	
	List<FlowRole> listFlowRoleByStatus();
}
